config/vimrc

80 lines
1.6 KiB
VimL
Raw Normal View History

2016-02-04 03:41:17 +00:00
execute pathogen#infect()
2016-02-04 03:37:50 +00:00
syntax on
2016-02-04 03:41:17 +00:00
filetype plugin indent on
2016-02-04 03:37:50 +00:00
2016-02-04 03:51:15 +00:00
" Window settings
set winminwidth=20
set winwidth=100
set winheight=20
" Wrapping
set nowrap
set linebreak " wrap nicer
" Keeps lines below the cursor
set scrolloff=2
" Tabbing
" I added this monster because Python doesn't play nice with my usual
" settings, or some such nonsense. Anyway, it appears to work.
function! SetupTabbing()
set tabstop=2
set expandtab
set shiftwidth=2
set softtabstop=2
set sw=2
set autoindent
set smartindent
set smarttab
endfunction
command! -bar SetupTabbing call SetupTabbing()
SetupTabbing
" makes LaTeX use spell checking, word wrapping
autocmd FileType tex set wrap spell
autocmd FileType make set noexpandtab
autocmd FileType python SetupTabbing
autocmd FileType markdown set wrap spell
2016-02-04 03:51:15 +00:00
let java_allow_cpp_keywords=1
set ruler
set number
2016-05-31 00:38:43 +00:00
set relativenumber
2016-02-04 03:51:15 +00:00
set backspace=indent,eol,start
set hlsearch
2016-02-04 04:48:36 +00:00
set splitright
set splitbelow
map <C-n> :NERDTreeToggle<CR>
2016-02-17 04:31:53 +00:00
" Enable airline by default
2016-02-04 04:48:36 +00:00
set laststatus=2
2016-02-17 04:31:53 +00:00
let g:airline#extensions#tabline#enabled = 1
" Ignore *.pyc files.
let NERDTreeIgnore = ['\.pyc$']
2016-02-04 04:48:36 +00:00
"
2016-02-04 03:51:15 +00:00
"" I think this is some command for OS X compatibility? I don't know. Leaving
"" it here so that I can find it later if I need it.
2016-02-04 04:48:36 +00:00
"set term=xterm-color
set t_Co=256
2016-02-04 04:48:36 +00:00
colorscheme 256-grayvim
"colorscheme gentooish
2016-03-22 15:45:42 +00:00
2016-04-17 15:07:10 +00:00
"let mapleader = "'"
"set pastetoggle=<Leader>p
"map <Leader>w :set wrap<CR>
"map <Leader>e :set nowrap<CR>
2017-01-11 03:14:38 +00:00
let g:vimwiki_list = [ {'path': '~/vimwiki'}, {'path': '~/Code/vimwiki-client-notes'} ]
2017-03-13 15:51:19 +00:00
" fixes webpack file watchers
set backupcopy=yes