-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.vimrc
More file actions
73 lines (66 loc) · 1.72 KB
/
.vimrc
File metadata and controls
73 lines (66 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
call pathogen#infect()
filetype plugin indent on
syntax enable
set tabstop=4
set shiftwidth=4
set softtabstop=0
set ruler
set number
set title
"set autoindent
set term=screen-256color
filetype plugin indent on
set hlsearch
set tw=78
set sw=4
set expandtab "convert tabs to spaces
set smarttab
set vb
set clipboard=unnamed
set guioptions-=r
let g:syntastic_error_symbol = '✗'
let g:syntastic_warning_symbol = '⚠'
set guifont=Consolas\ Bold:h16
vnoremap . :norm.<CR>
" =============================
" Python
" =============================
"set smartindent cinwords=if,elif,else,for,while,try,except,finally,def,class
"map <buffer> <C-e> :w<CR>:!python % <CR>
map <buffer> <C-e> :w<CR>:!ghc -o out %<CR>:!./out<CR>
map <buffer> <C-e> :w<CR>:!gcc %<CR>:!./a.out<CR>
"Remap leader to ,
let mapleader = ","
"Remap jk to esc
inoremap jk <ESC>
" ==============================
" Color related
" ============================
set t_Co=256
set background=dark
" let g:solarized_termcolors=256
" colorscheme solarized
colorscheme distinguished
" ===============================
" Key Mappings
" ==============================
map <leader>d :NERDTreeToggle<CR>
map <leader>n :nohlsearch<CR>
map <leader>t :TagbarToggle<CR>
map <leader>g :GundoToggle<CR>
"CtrlP - Easy File and Buffer search
map <leader>b :CtrlPBuffer<CR>
let g:ctrlp_map = '<c-p>'
let g:ctrlp_cmd = 'CtrlP'
"Spell check
map <leader>sc :setlocal spell spelllang=en_us<CR>
map <leader>sx :setlocal nospell spelllang=en_us<CR>
" Tab navigation
:nmap <leader>tp :tabprevious<CR>
:nmap <leader>tn :tabnext<CR>
:map <leader>tp :tabprevious<CR>
:map <leader>tn :tabnext<CR>
:imap <leader>tp <Esc>:tabprevious<CR>i
:imap <leader>tn <Esc>:tabnext<CR>i
:nmap <C-t> :tabnew<CR>
:imap <C-t> <Esc>:tabnew<CR>