-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwinvimrc
More file actions
54 lines (42 loc) · 1.02 KB
/
winvimrc
File metadata and controls
54 lines (42 loc) · 1.02 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
"Needs pathogen in vimfiles/autoload
"vim-p1 is nice
"I don't have the energy to create another repo
"
execute pathogen#infect()
inoremap jj <Esc>
"General config
"
set hidden
filetype off " required!
set relativenumber
set nocompatible
syntax on
filetype plugin indent on " required!
set backspace=indent,eol,start
set expandtab
set wildmode=list:longest
set backupdir=~/tmp
"Indents / scroll
set tabstop=2
set shiftwidth=2
set scrolloff=8
"Timeout
set notimeout
"Search
set incsearch
"Remapping
let mapleader = ","
"Window management
set splitright " Open new vertical split windows to the right of the current one, not the left.
set splitbelow " See above description. Opens new windows below, not above.
" Map ctrl-movement keys to window switching
map <C-k> <C-w><Up>
map <C-j> <C-w><Down>
map <C-l> <C-w><Right>
map <C-h> <C-w><Left>
" Function keys
nmap <F1> <Esc> "No help
nnoremap <F2> :set invpaste paste?<CR> "Toggle paste mode
set pastetoggle=<F2>
set shell=powershell
set shellcmdflag=-command