Created
May 18, 2012 00:14
-
-
Save jyc/2722384 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible | |
| set modeline | |
| set ttyfast | |
| set backspace=indent,eol,start | |
| set backup | |
| set history=50 | |
| set ruler | |
| set background=dark | |
| set showcmd | |
| set incsearch | |
| set hlsearch | |
| set smartindent | |
| set wildmenu | |
| set showmatch | |
| set autoindent | |
| set tabstop=4 | |
| set shiftwidth=4 | |
| set smarttab | |
| map Y y$ | |
| nnoremap <C-L> :nohl<CR><C-L> | |
| set nobackup | |
| set swapfile | |
| set dir=~/.tmp | |
| set t_Co=256 | |
| set rtp+=~/go/misc/vim | |
| filetype plugin indent on | |
| syntax on | |
| " Parse JSON files as JavaScript | |
| au BufNewFile,BufRead *.json set ft=javascript | |
| " Delete trailing whitespace with F5 | |
| nnoremap <silent> <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR> | |
| " Delete blank lines with F6 | |
| nnoremap <silent> <F6> :g/^$/d<CR> | |
| " Full OmniComplete | |
| set ofu=syntaxcomplete#Complete | |
| " Set tabs to two spaces for YAML files | |
| autocmd FileType yaml set ai sw=2 sts=2 et | |
| " Commenting visually selected text | |
| map ,c :s/^/\/\/ /<Bar>:nohl<CR> | |
| map ,u :s/^\/\/ //<Bar>:nohl<CR> | |
| au BufRead,BufNewFile *.go set filetype=go | |
| au BufRead,BufNewFile wscript set filetype=python |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment