Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "number at start of each line
- set number
- "search highlighting
- set hlsearch
- "deletes highlights
- nnoremap <silent> <C-l> :nohl<CR><C-l>
- " size of a hard tabstop
- set tabstop=2
- "size of an indent
- set shiftwidth=2
- "smart tabs
- set smarttab
- "use spaces instead of tab
- set expandtab
- "do not indent by spaces in makefile
- autocmd Filetype make set noexpandtab
- "auto pair {
- "inoremap { {<CR>}<Esc>ko
- "alt+w save
- :nmap <a-w> :w<CR>
- :imap <a-w> <Esc>:w<CR>i
- "alt+q quit'n'save
- :nmap <a-q> :wq<CR>
- :imap <a-q> <Esc>:wq<CR>
- "ctrl+d quit
- :nmap <c-d> :q!<CR>
- :imap <c-d> <Esc>:q!<CR>
- "alt mapping workaround
- let c='a'
- while c <= 'z'
- exec "set <A-".c.">=\e".c
- exec "imap \e".c." <A-".c.">"
- let c = nr2char(1+char2nr(c))
- endw
- "hide numbers
- :nmap <F12> :set invnumber<CR>
- set timeout ttimeoutlen=1
- set tags=./tags
- set background=dark
- set t_Co=256
- if &term =~ '^screen'
- " tmux will send xterm-style keys when xterm-keys is on
- execute "set <xUp>=\e[1;*A"
- execute "set <xDown>=\e[1;*B"
- execute "set <xRight>=\e[1;*C"
- execute "set <xLeft>=\e[1;*D"
- endif
- syntax on
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement