Skip to content

Instantly share code, notes, and snippets.

@namlet
Created January 4, 2011 21:15
Show Gist options
  • Save namlet/765426 to your computer and use it in GitHub Desktop.
Save namlet/765426 to your computer and use it in GitHub Desktop.
set nocompatible
syntax on
filetype plugin indent on
set tabstop=4
set shiftwidth=4
set expandtab
set number
set sts=4
set smarttab
set autoindent
set smartindent
autocmd BufRead * silent! %s/[\r \t]\+$//
autocmd BufEnter *.php :%s/[ \t\r]\+$//e
set list
set listchars=trail:-
colorscheme slate
map <C-J> <C-W>j<C-W>_
map <C-K> <C-W>k<C-W>_
map <C-H> <C-W>h<C-W>_
map <C-L> <C-W>l<C-W>_
set wmh=0
vnoremap < <gv
vnoremap > >gv
nmap <silent> cm :let save_search=@/<CR>v/[A-Z]\\|\([A-Za-z0-9]\)\@<lt>=\(\W\\|_\)<CR>hx:let @/=save_search<CR>i
nmap <silent> cu :let save_search=@/<CR>/\w<CR>?[A-Z]\\|\(\W\\|_\\|\n\)\@<lt>=[A-Za-z0-9]<CR>v/[A-Z]\\|\([A-Za-z0-9]\)\@<lt>=\(\W\\|_\)<CR>hx:let @/=save_search<CR>i
nmap <silent> , :let save_search=@/<CR>/[A-Z]\\|\(\W\\|_\\|\n\)\@<lt>=[A-Za-z0-9]<CR>:let @/=save_search<CR>
nmap <silent> < :let save_search=@/<CR>?[A-Z]\\|\(\W\\|_\\|\n\)\@<lt>=[A-Za-z0-9]<CR>:let @/=save_search<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment