Skip to content

Instantly share code, notes, and snippets.

@juev
Created March 17, 2011 17:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save juev/874768 to your computer and use it in GitHub Desktop.
Save juev/874768 to your computer and use it in GitHub Desktop.
my ~/.vimrc file
" http://vimdoc.sourceforge.net/htmldoc/starting.html#vimrc
set nocompatible " use vim defaults
set scrolloff=3 " keep 3 lines when scrolling
set ai " set auto-indenting on for programming
set tabstop=2
set softtabstop=2
set shiftwidth=2
set expandtab
set smarttab " Smarter tab levels
set showcmd " display incomplete commands
set nobackup " do not keep a backup file
set number " show line numbers
set ruler " show the current row and column
"set hlsearch " highlight searches
set nohls
set incsearch " do incremental searching
set showmatch " jump to matches when entering regexp
set ignorecase " ignore case when searching
set smartcase " no ignorecase if Uppercase char present
set visualbell t_vb= " turn off error beep/flash
set novisualbell " turn off visual bell
set backspace=indent,eol,start " make that backspace key work the way it should
syntax on " turn syntax highlighting on by default
filetype on " detect type of file
filetype indent on " load indent file for specific file type
set t_RV= " http://bugs.debian.org/608242, http://groups.google.com/group/vim_dev/browse_thread/thread/9770ea844cec3282
set showcmd " Display an incomplete command in the lower right corner of the Vim window
set shortmess=atI " Shortens messages
set mouse-=a " Disable mouse
set mousehide " Hide mouse after chars typed
set guioptions-=T "remove toolbar
set guioptions-=r "remove right-hand scroll bar
set guifont=Monospace\ 10
let g:user_zen_settings = {
\ 'php' : {
\ 'extends' : 'html',
\ 'filters' : 'c',
\ },
\ 'xml' : {
\ 'extends' : 'html',
\ },
\ 'markdown' : {
\ 'extends' : 'html',
\ },
\}
nmap <silent> <F2> :NERDTreeToggle<CR>
set pastetoggle=<F3>
"Switch keys
set keymap=russian-jcukenwin
let b:keymap_name='RU'
" по умолчанию латинская раскладка
set iminsert=0
" по умолчанию латинская раскладка при поиске
set imsearch=0
com SpellBuf :setlocal spell spelllang=ru
" Enable soft-wrapping for text files
autocmd FileType text,markdown,html,xhtml,eruby setlocal wrap linebreak nolist
au BufEnter *.markdown set textwidth=90 wrapmargin=90 fo=cqt
set guifont=Monospace\ 10
noremap <Up> gk
noremap k gk
noremap <Down> gj
noremap j gj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment