Mercurial > public > dotfiles
view vim/.vimrc @ 12:71f65ccb96f0
Adding my .hgrc and .pythonstartup files.
Added a .hgignore.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Tue, 04 Jun 2013 19:24:08 -0500 |
parents | b113527fa5d1 |
children | d428a965f322 |
line wrap: on
line source
set nocompatible "source $VIMRUNTIME/vimrc_example.vim "source $VIMRUNTIME/mswin.vim "behave mswin set nobackup set tabstop=3 set shiftwidth=3 set backspace=indent,eol,start set expandtab set textwidth=79 set number set ruler set history=1000 set encoding=utf-8 set showcmd " CtrlP related settings " set wildignore+=.git\*,.hg\*,.svn\*,*.d,*.dbo,*.o,*.ti,*.ii,*.swp,*.pyc set wildignore+=*/.git/*,*/.hg/*,*/.svn/* let g:ctrlp_working_path_mode = 2 " This allows % to toggle on if/elsif/else/end, XML tags, & more runtime macros/matchit.vim " These two options make /-style searching case-sensitive only if there " is a capital letter in the search expression. set ignorecase set smartcase " Sets the terminal title when run in an xterm set title " This puts more context around the cursor when scrolling set scrolloff=3 let g:netrw_sort_sequence = "[\/]$,*,\.bak$,\.o$,\.info$,\.swp$,\.obj$" syntax on filetype on filetype plugin on filetype indent on set hlsearch set incsearch " highlight trailing spaces let c_space_errors = 1 let python_space_error_highlight = 1 set background=dark colorscheme peaksea2 " colorscheme Dark " shortcut for word completion in insert mode imap <S-Tab> <C-n> " buffer next and previous commands nnoremap <Tab> :bnext<CR> nnoremap <S-Tab> :bprevious<CR> " Remove extra trailing spaces nnoremap <F2> :%s/\s\+$//<CR> " setlocal spell spelllang=en_us let mapleader="," " NERD tree plugin " nmap ,n :NERDTreeToggle<CR> " let g:NERDTreeQuitOnOpen=1 " ctags support function BgnCtags() let d = fnamemodify(findfile("root.dir", ";"), ":p:h") let tags = d . "\\tags" let s = "ctags -R --c++-kinds=+p --fields=+iaS --extra=+q --exclude=Coe_prune --exclude=Opnet --languages=-all --languages=+c,c++,python -f " . tags . " " . d echo s call system(s) endfunction nnoremap <F8> :call BgnCtags()<CR> nnoremap <F9> :tn<CR> nnoremap <F10> :tp<CR> nnoremap <F11> :tj<CR> set tags=tags;/ " Trial settings set wildmenu set wildmode=list:longest set laststatus=2 set gdefault set showmatch set formatoptions=tcqrn1 nnoremap ,/ :noh<CR> " nnoremap / /\v " vnoremap / /\v " Splitting windows and moving around between them: nnoremap ,v <C-w>v<C-w>l nnoremap <C-h> <C-w>h nnoremap <C-j> <C-w>j nnoremap <C-k> <C-w>k nnoremap <C-l> <C-w>l " Absolute vs relative line numbers: nnoremap ,na :set norelativenumber<CR>:set number<CR> nnoremap ,nr :set relativenumber<CR> " Format paragraph nnoremap ,p gqip " Pathogen support call pathogen#infect()