1
0
Fork 0
mirror of synced 2024-11-29 20:25:34 -05:00

modify vim config

This commit is contained in:
longlinht 2015-11-01 15:40:37 +08:00
parent 0228ad0e9e
commit ec83ee4522
4 changed files with 6210 additions and 5 deletions

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -46,6 +46,9 @@
" Sets how many lines of history VIM has to remember " Sets how many lines of history VIM has to remember
set history=500 set history=500
" Sets line number
set number
" Enable filetype plugins " Enable filetype plugins
filetype plugin on filetype plugin on
filetype indent on filetype indent on
@ -55,8 +58,8 @@ set autoread
" With a map leader it's possible to do extra key combinations " With a map leader it's possible to do extra key combinations
" like <leader>w saves the current file " like <leader>w saves the current file
let mapleader = "," let mapleader = ";"
let g:mapleader = "," let g:mapleader = ";"
" Fast saving " Fast saving
nmap <leader>w :w!<cr> nmap <leader>w :w!<cr>
@ -142,7 +145,7 @@ set foldcolumn=1
syntax enable syntax enable
try try
colorscheme desert colorscheme peaksea
catch catch
endtry endtry
@ -360,8 +363,10 @@ map <leader>x :e ~/buffer.md<cr>
" Toggle paste mode on and off " Toggle paste mode on and off
map <leader>pp :setlocal paste!<cr> map <leader>pp :setlocal paste!<cr>
" Ctrl-x for cut
vmap <C-x> :!pbcopy<cr>
" Ctrl-c for copy
vmap <C-c> :w !pbcopy<cr><cr>
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Helper functions " => Helper functions

View file

@ -167,3 +167,11 @@ nnoremap <silent> <leader>l :call SyntasticCheckCoffeescript()<cr>
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let g:gitgutter_enabled=0 let g:gitgutter_enabled=0
nnoremap <silent> <leader>d :GitGutterToggle<cr> nnoremap <silent> <leader>d :GitGutterToggle<cr>
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
" => Taglist
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
let Tlist_Show_One_File=1
let Tlist_Exit_OnlyWindow=1
nnoremap <silent> <F8> :TlistToggle<CR>