Skip to content

Commit d61810c

Browse files
update: added some after/ftplugin files
1 parent b0c6502 commit d61810c

File tree

4 files changed

+28
-2
lines changed

4 files changed

+28
-2
lines changed

after/ftplugin/typescript.vim

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
set expandtab
2+
set shiftwidth=2
3+
set softtabstop=2
4+
set tabstop=2
5+
6+
set foldmethod=manual
7+
" set nofoldenable
8+
set foldlevelstart=99
9+
" help with slowing of typescript syntax highlighting
10+
setlocal regexpengine=2
11+
12+
" ?: backwards search to z then xi
13+
" CTRL+] to expand without putting the space in
14+
iabbrev cld@ console.dir(z, {depth: null});<Esc>?z<CR>xi
15+
iabbrev cll@ console.log(z);<Esc>?z<CR>xi

after/ftplugin/vim.vim

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
set expandtab
2+
set shiftwidth=2
3+
set softtabstop=2
4+
set tabstop=2

nethackrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ OPTIONS=hilite_pet
55
OPTIONS=lit_corridor
66
OPTIONS=DECgraphics
77
OPTIONS=showrace
8-
OPTIONS=autopickup,pickup_types:$?!/=
8+
OPTIONS=autopickup,pickup_types:$?!/="+
99
OPTIONS=disclose:+i+a+g+c+v
1010
OPTIONS=showexp,showscore,time
1111
OPTIONS=boulder:0

vimrc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,21 @@ let mapleader=" "
1212
map <silent> <F2> :Lexplore<CR>
1313
map <silent> <F3> :set number! relativenumber!<CR>
1414
map <silent> <F4> :syntax sync minlines=50<CR>
15-
imap cll console.log()<Left>
1615
nnoremap <silent> <C-d> <C-d>zz<CR>
1716
nnoremap <silent> <C-u> <C-u>zz<CR>
1817
nnoremap <leader>tn :tabnew<CR>
1918
nnoremap <leader>tc :tabclose<CR>
2019
20+
" iabbrev in after/ftplugin (abbreviations)
21+
2122
set autoindent
2223
filetype plugin indent on
2324

25+
" regexpengine to automatic selection
26+
" after/ftplugin can override to help with syntax highlighting
27+
" setlocal regexpengine=2
28+
set regexpengine=0
29+
2430
syntax enable
2531

2632
set laststatus=2 " always show the status line
@@ -70,3 +76,4 @@ nnoremap <leader>lh :LspHover<CR>
7076
nnoremap <leader>hl :LspHighlight<CR>
7177
nnoremap <leader>hL :LspHighlightClear<CR>
7278
nnoremap <leader>lf :LspFormat<CR>
79+
nnoremap <leader>lF :LspFold<CR>

0 commit comments

Comments
 (0)