-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.vimrc
executable file
·49 lines (44 loc) · 2.22 KB
/
.vimrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
set clipboard=unnamed "Enable clipboard
filetype plugin indent on "Enable indent plugin
syntax enable "Enable syntax coloring
syntax on "Turn syntax coloring on
:color desert "Set desert syntax coloring
set nocompatible "Allow Vim-only settings even if they break vi keybindings.
:filetype on "Enable filetype detection
set incsearch "Find as you type
set ignorecase "Ignore case in search
set scrolloff=5 "Number of lines to keep above/below cursor
set smartcase "Only ignore case when all letters are lowercase
set number "Show line numbers
set wildmode=longest,list "Complete longest string, then list alternatives
set fileformats=unix "Use Unix line endings
set smartindent "Smart autoindenting on new line
set smarttab "Respect space/tab settings
set history=300 "Number of commands to remember
set backspace=2 "Use standard backspace behavior
set hlsearch "Highlight matches in search
set ruler "Show line and column number
set formatoptions=1 "Don't wrap text after a one-letter word
set linebreak "Break lines when appropriate
set autoindent "Auto indent based on previous line
"Prepare tab/space indent settings
set tabstop=4 "Set Tab width to 4
set shiftwidth=4 "Indents will have width of 4
set softtabstop=4 "Set the number of columns for tab
set expandtab "Expand tabs to spaces
set pastetoggle=<F2> "Toggles paste mode (useful while pasting text from other apps)
set list "Shows whitespaces and end of line
set nolist "Hides whitespaces and end of line
map <F6> :setlocal spell! spelllang=en_us<CR>
vnoremap <C-c> "+y
map <C-p> "+p
let g:mergetool_layout = 'LmR'
let mapleader = ','
nnoremap <leader>n :NERDTreeToggle<CR>
nnoremap <leader>t :TagbarToggle<CR>
nnoremap <leader>g :Goyo<CR>
nnoremap <leader>p :CtrlP<CR>
nnoremap <leader>m :MergetoolToggle<CR>
" remove all trailing whitespaces on save
autocmd BufWritePre * %s/\s\+$//e
execute pathogen#infect()