mirror of
https://github.com/amix/vimrc
synced 2025-07-08 01:25:00 +08:00
merge conflicts of .gitignore and README.md
This commit is contained in:
@ -61,6 +61,10 @@ let g:mapleader = ","
|
||||
" Fast saving
|
||||
nmap <leader>w :w!<cr>
|
||||
|
||||
" :W sudo saves the file
|
||||
" (useful for handling the permission-denied error)
|
||||
command W w !sudo tee % > /dev/null
|
||||
|
||||
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" => VIM user interface
|
||||
|
@ -10,21 +10,15 @@
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
set background=dark
|
||||
|
||||
if has("gui_running")
|
||||
colorscheme peaksea
|
||||
else
|
||||
colorscheme ir_black
|
||||
endif
|
||||
colorscheme peaksea
|
||||
|
||||
" Set font according to system
|
||||
if has("mac") || has("macunix")
|
||||
set gfn=Menlo:h14
|
||||
set shell=/bin/bash
|
||||
set gfn=Menlo:h15
|
||||
elseif has("win16") || has("win32")
|
||||
set gfn=Bitstream\ Vera\ Sans\ Mono:h10
|
||||
set gfn=Bitstream\ Vera\ Sans\ Mono:h11
|
||||
elseif has("linux")
|
||||
set gfn=Monospace\ 10
|
||||
set shell=/bin/bash
|
||||
set gfn=Monospace\ 11
|
||||
endif
|
||||
|
||||
" Open MacVim in fullscreen mode
|
||||
|
@ -58,6 +58,14 @@ let g:ctrlp_custom_ignore = 'node_modules\|^\.DS_Store\|^\.git\|^\.coffee'
|
||||
map <leader>j :PeepOpen<cr>
|
||||
|
||||
|
||||
|
||||
""""""""""""""""""""""""""""""
|
||||
" => ZenCoding
|
||||
""""""""""""""""""""""""""""""
|
||||
" Enable all functions in all modes
|
||||
let g:user_zen_mode='a'
|
||||
|
||||
|
||||
""""""""""""""""""""""""""""""
|
||||
" => snipMate (beside <TAB> support <CTRL-j>)
|
||||
""""""""""""""""""""""""""""""
|
||||
@ -80,6 +88,12 @@ map <leader>nb :NERDTreeFromBookmark
|
||||
map <leader>nf :NERDTreeFind<cr>
|
||||
|
||||
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" => vim-multiple-cursors
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
let g:multi_cursor_next_key="\<C-s>"
|
||||
|
||||
|
||||
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
||||
" => surround.vim config
|
||||
" Annotate strings with gettext http://amix.dk/blog/post/19678
|
||||
|
Reference in New Issue
Block a user