Skip to content

Instantly share code, notes, and snippets.

@squm
Created March 1, 2013 07:05
Show Gist options
  • Save squm/5062955 to your computer and use it in GitHub Desktop.
Save squm/5062955 to your computer and use it in GitHub Desktop.
filetype plugin on
map <silent> <F2> :update<CR>
imap <silent> <F2> <Esc>:update<CR>
"set clipboard+=unnamed
set cursorline
normal zR
set nowrap
if v:progname =~? "evim"
finish
endif
set nocompatible
set backspace=indent,eol,start
if has("vms")
set nobackup
else
set backup
endif
set history=50
set ruler
set showcmd
set incsearch
map Q gq
"vnoremap p "_dp
if &t_Co > 2 || has("gui_running")
syntax on
set hlsearch
endif
if has("autocmd")
filetype plugin indent on
augroup vimrcEx
au!
autocmd FileType text setlocal textwidth=78
autocmd BufReadPost *
\ if line("'\"") > 0 && line("'\"") <= line("$") |
\ exe "normal g`\"" |
\ endif
augroup END
else
set autoindent
endif " has("autocmd")
set directory=~/archives
set backupdir=~/archives
set ignorecase
"set guioptions=rl
set guioptions=
set foldmethod=syntax
map <buffer> <d-/> gcc
imap <buffer> <d-/> <Esc>gcc
map <F3> gCcj
imap <F3> <Esc>gCcj
map <F4> gCck
imap <F4> <Esc>gCck
map <S-F3> gccj
map <S-F4> <Esc>gcck
map <Leader>co gcc
map <C-N> :set hls? hls!<CR>
map <S-Help> p
imap <S-Help> <C-R>*
cmap <S-Help> <C-R>*
map ± ~
imap ± ~
cmap ± ~
map <C-S-N> :set hls? hls!<CR>
let loaded_matchparen = 1
colorscheme grb256
" Only do this part when compiled with support for autocommands.
if has("autocmd")
"au FileType perl source <location of perl_doc.vim>
au FileType perl let g:perldoc_program='/usr/bin/perldoc'
autocmd Filetype java setlocal omnifunc=javacomplete#Complete
autocmd Filetype java setlocal completefunc=javacomplete#CompleteParamsInfo
au Filetype html,xml,xsl source $VIM/vimfiles/closetag.vim
endif
"let g:SuperTabDefaultCompletionType = "<c-x><c-o>"
"let g:tcommentOptions = {'col': 1}
set vb t_vb=
"let g:clang_user_options='|| exit 0'
"let g:clang_complete_copen = 1
"set foldclose=all
"set foldcolumn=1
set foldenable
set foldmethod=syntax
" set foldopen=all
set langmap=ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯ;ABCDEFGHIJKLMNOPQRSTUVWXYZ,фисвуапршолдьтщзйкыегмцчня;abcdefghijklmnopqrstuvwxyz,Ж\\:,ж\\;,б\\,,Б\\<,ю\\.,Ю\\>,№#
command! FindNonAscii normal /[^\x00-\x7f]<cr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment