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 the key to toggle NERDTree | |
nnoremap <leader>d :NERDTreeToggle<cr> | |
" set Enter/Return to activate a node | |
let NERDTreeMapActivateNode='<CR>' |
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 keys to toggle Scratch buffer | |
function! ToggleScratch() | |
if expand('%') == g:ScratchBufferName | |
quit | |
else | |
Sscratch | |
endif | |
endfunction | |
map <leader>s :call ToggleScratch()<CR> |
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 the leader key | |
let mapleader = "," | |
" Map w!! to write file with sudo, when forgot to open with sudo. | |
cmap w!! w !sudo tee % >/dev/null | |
" Map F1 to Esc. Safe to remove if not desirable. | |
inoremap <F1> <ESC> | |
nnoremap <F1> <ESC> | |
vnoremap <F1> <ESC> |
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 bs=indent,eol,start | |
set viminfo='20,\"50 | |
set history=50 | |
set ruler | |
set number | |
set smarttab | |
set title | |
set incsearch | |
set t_Co=256 |
NewerOlder