Compare commits
10 Commits
58c1b6cbd8
...
66b2c29137
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
66b2c29137 | ||
|
|
c50877437c | ||
|
|
bb03d5b2a0 | ||
|
|
9f9a049066 | ||
|
|
6715f915f3 | ||
|
|
b644167d57 | ||
|
|
662cc5977e | ||
|
|
0583313f3d | ||
|
|
38f841496f | ||
|
|
2bd443188d |
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
backup/
|
backup/
|
||||||
swap/
|
swap/
|
||||||
undo/
|
undo/
|
||||||
|
.netrwhist
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
let g:netrw_dirhistmax =10
|
|
||||||
let g:netrw_dirhistcnt =2
|
|
||||||
let g:netrw_dirhist_2='C:/Program Files/Vim'
|
|
||||||
let g:netrw_dirhist_1='C:/Program Files/Vim/vim91'
|
|
||||||
21
LICENSE
Normal file
21
LICENSE
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
MIT License
|
||||||
|
|
||||||
|
Copyright (c) 2024 wunewww
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in all
|
||||||
|
copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||||
|
SOFTWARE.
|
||||||
10
README.md
10
README.md
@ -1,21 +1,21 @@
|
|||||||
# vimfiles
|
# simvim
|
||||||
|
|
||||||
This is wuniu's vim settings. This file describes wuniu's editing experience.
|
This is wuniu's vim profiles which is simple and like to vim original
|
||||||
|
experience.
|
||||||
|
|
||||||
|
Note below describes some interesting tricks.
|
||||||
|
|
||||||
## Load Sequence
|
## Load Sequence
|
||||||
|
|
||||||
1. vimrc and scripts are triggered by vimrc
|
1. vimrc and scripts are triggered by vimrc
|
||||||
1. plugins under `plugins/` and scripts triggered by them
|
1. plugins under `plugins/` and scripts triggered by them
|
||||||
1. packs under `pack/plugin/start/` and etc.
|
1. packs under `pack/plugin/start/` and etc.
|
||||||
1. plugins under `after/plugins/` and etc.
|
|
||||||
|
|
||||||
## Generate Doc
|
## Generate Doc
|
||||||
|
|
||||||
After installing / adding a new pack with `doc/` inside. Generate doc tags
|
After installing / adding a new pack with `doc/` inside. Generate doc tags
|
||||||
using `packloadall | silent! helptags ALL`, which will regenerate all tags of docs.
|
using `packloadall | silent! helptags ALL`, which will regenerate all tags of docs.
|
||||||
|
|
||||||
[link]
|
|
||||||
|
|
||||||
## Reloading `vimrc` File
|
## Reloading `vimrc` File
|
||||||
|
|
||||||
After editing vimrc file, one can execute it by `:so $MYVIMRC`. But this will
|
After editing vimrc file, one can execute it by `:so $MYVIMRC`. But this will
|
||||||
|
|||||||
@ -1,4 +0,0 @@
|
|||||||
" markdown filetype setttings
|
|
||||||
"
|
|
||||||
" ale fixer and lsp etc.
|
|
||||||
let b:ale_fixers = ['pandoc', 'remove_trailing_lines', 'trim_whitespace']
|
|
||||||
@ -54,8 +54,8 @@ if &shell =~# 'fish$'
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
if has('win32')
|
if has('win32')
|
||||||
set shell=pwsh.exe
|
" set shell=pwsh.exe
|
||||||
set shellcmdflag=-nop\ -c
|
" set shellcmdflag=-nop\ -c
|
||||||
endif
|
endif
|
||||||
|
|
||||||
" Put all temporary files under the same directory.
|
" Put all temporary files under the same directory.
|
||||||
|
|||||||
@ -1,12 +1,12 @@
|
|||||||
" This is special settings for vim-gui.
|
" This is special settings for vim-gui.
|
||||||
"
|
"
|
||||||
if has("gui_running")
|
if has("gui_running")
|
||||||
if has("gui_gtk2")
|
if has("gui_macvim")
|
||||||
set guifont=Inconsolata\ 12
|
|
||||||
elseif has("gui_macvim")
|
|
||||||
set guifont=Menlo\ Regular:h14
|
set guifont=Menlo\ Regular:h14
|
||||||
elseif has("gui_win32")
|
elseif has("gui_win32")
|
||||||
set guifont=CaskaydiaMono\ NFM:h12
|
set guifont=CaskaydiaMono\ NFM:h12
|
||||||
|
else
|
||||||
|
set guifont=Inconsolata\ Nerd\ Font\ 12
|
||||||
endif
|
endif
|
||||||
set go-=T
|
set go-=T
|
||||||
set go-=m
|
set go-=m
|
||||||
|
|||||||
@ -3,6 +3,7 @@
|
|||||||
"
|
"
|
||||||
" You should not turn this setting on if you wish to use ALE as a completion
|
" You should not turn this setting on if you wish to use ALE as a completion
|
||||||
" source for other completion plugins, like Deoplete.
|
" source for other completion plugins, like Deoplete.
|
||||||
|
|
||||||
packadd! ale
|
packadd! ale
|
||||||
|
|
||||||
" Enable ale completion
|
" Enable ale completion
|
||||||
@ -14,4 +15,17 @@ let g:ale_fixers = {
|
|||||||
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
|
||||||
\}
|
\}
|
||||||
" fix when save
|
" fix when save
|
||||||
let g:ale_fix_on_save = 1
|
let g:ale_fix_on_save=1
|
||||||
|
|
||||||
|
nmap <silent> <C-k> <Plug>(ale_previous_wrap)
|
||||||
|
nmap <silent> <C-j> <Plug>(ale_next_wrap)
|
||||||
|
|
||||||
|
nmap gh <Plug>(ale_hover)
|
||||||
|
nmap <leader>d <Plug>(ale_detail)
|
||||||
|
nmap <leader>x <Plug>(ale_fix)
|
||||||
|
nmap <leader>g <Plug>(ale_go_to_definition_in_tab)
|
||||||
|
nmap <leader>r <Plug>(ale_find_references)
|
||||||
|
|
||||||
|
let g:ale_floating_preview=1
|
||||||
|
let g:ale_floating_window_border=['│', '─', '╭', '╮', '╯', '╰', '│', '─']
|
||||||
|
let g:ale_hover_to_floating_preview=1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user