" menu for encoding
set wildmenu
set wcm=
set ts=4
menu Encoding.koi8-r :e ++enc=koi8-r
menu Encoding.windows-1251 :e ++enc=cp1251
menu Encoding.utf-8 :e ++enc=utf-8
map :emenu Encoding.Ask HN: What's in your .vimrc file?
61–69 of 69 posts
Re: Ask HN: What's in your .vimrc file?
#62 set incsearch
set ignorecase
set hlsearch
" make the status line more useful
set statusline=%F%m%r%h%w[%L][%{&ff}]%y[%p%%][%04l,%04v]
set nocompatible
" backspace mode
set bs=2
" highlitt current line and add line numbers
set cursorline
set number
" yummy
set guifont=Monaco:h11.00
" turn off the scrollbars and the rest of the crap
set guioptions=eg
""set foldenable
""set foldmethod=indent
filetype plugin on
filetype on
" autoindenting
set cindent
set smartindent
set autoindent
" display improvements
set list
" show indents
set listchars=tab:\.\ ,trail:-
set ruler
set showcmd
" i use tabs instead of spaces, wanna make something of it?
set noexpandtab
set tabstop=4
set shiftwidth=4
set softtabstop=4
" temp files
set backupdir=~/.vim/bak
set directory=~/.vim/tmp
" colorz
syntax on
colorscheme herald " molokai, zenburn, darkburn, vibrantink
" PLUGINZ
" allml settings
let g:allml_global_maps = 1
let g:HiMtchBrkt=1
let g:SCMDiffCommand="/opt/subversion/bin/svn"
inoremap :call PhpDocSingle()
nnoremap :call PhpDocSingle()
vnoremap :call PhpDocRange()
" PHP specific fixes
" highlights interpolated variables in sql strings and does sql-syntax highlighting. yay
autocmd FileType php let php_sql_query=1
" does exactly that. highlights html inside of php strings
autocmd FileType php let php_htmlInStrings=1
" discourages use oh short tags. c'mon its deprecated remember
autocmd FileType php let php_noShortTags=1
" settings for cake
au BufNewFile *.ctp set filetype=php
au BufRead *.ctp set filetype=phpRe: Ask HN: What's in your .vimrc file?
#63 set showbreak=>\
set wildignore=*.bak,*.pyc,*.swp
set wildmenu
set wildmode=list:longest
This is actually quicker than reaching for ESC most of the time: inoremap
vnoremap
Tab switching: noremap gt
noremap gT
Something useful for syntax file writing: noremap :echo synIDattr(synID(line("."), col("."), 1), "name")Re: Ask HN: What's in your .vimrc file?
#64 nnoremap :Re: Ask HN: What's in your .vimrc file?
#65427 2342 16457 .vimrc
Way too much
Re: Ask HN: What's in your .vimrc file?
#66Earlier quoted context omitted.
Indeed! I can't do it any more, just filled me with so much hate... It's like people use the spacebar just to think. /rant ;)
And to answer the poster, I tend to just use the default vim. I'm bouncing around machines so much that I don't bother setting anything up on my main one that I'll miss on the others...
wget -O ~/.vimrc http://lucasoman.com/vimrc
And just like that, I'm in my comfort zone. Of course, this doesn't cover plugins and such, but I don't use those very often.
Re: Ask HN: What's in your .vimrc file?
#67 " For (ab)use with :sp
map j_
map k_
set wmh=0 so=999 winheight=999
nnoremap i :nohi
" \s is global-replace-this-word
:nnoremap s :%s/\\>//gRe: Ask HN: What's in your .vimrc file?
#68The one addition to my .vimrc that I can't live without: nnoremap :
Re: Ask HN: What's in your .vimrc file?
#69perhaps of interest: " for vertical split, with the pipe dividers hidden :hi clear vertsplit :hi vertsplit ctermbg=Black ctermfg=Black " quit quits all :nmap :q :qa :nmap :wq :wqa " H/L go to beginning/end of line without moving fingers :nmap H 0 :nmap L $ " turn off matching paren highlighting let loaded_matchparen = 1