Compare commits

..

10 Commits

Author SHA1 Message Date
wn
66b2c29137
Add ale key bindings. 2024-05-06 14:41:47 +08:00
wn
c50877437c
Add some ale key bindings. 2024-05-06 13:33:35 +08:00
wn
bb03d5b2a0
Test and enable ale hover func. 2024-05-06 12:22:15 +08:00
wunewww
9f9a049066
Create LICENSE 2024-05-05 23:42:54 +08:00
wn
6715f915f3
Update README.md 2024-05-05 23:39:31 +08:00
wn
b644167d57
Update gitignore 2024-05-05 23:36:07 +08:00
wn
662cc5977e
rm unused file 2024-05-05 23:24:48 +08:00
wn
0583313f3d
Change guifont for linux 2024-05-05 22:49:33 +08:00
wunewww
38f841496f remove markdown conf 2024-05-05 17:52:44 +08:00
wunewww
2bd443188d pwsh is not work, comment out 2024-05-05 17:50:44 +08:00
8 changed files with 47 additions and 19 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
backup/
swap/
undo/
.netrwhist

View File

@ -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
View 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.

View File

@ -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
1. vimrc and scripts are triggered by vimrc
1. plugins under `plugins/` and scripts triggered by them
1. packs under `pack/plugin/start/` and etc.
1. plugins under `after/plugins/` and etc.
## Generate Doc
After installing / adding a new pack with `doc/` inside. Generate doc tags
using `packloadall | silent! helptags ALL`, which will regenerate all tags of docs.
[link]
## Reloading `vimrc` File
After editing vimrc file, one can execute it by `:so $MYVIMRC`. But this will

View File

@ -1,4 +0,0 @@
" markdown filetype setttings
"
" ale fixer and lsp etc.
let b:ale_fixers = ['pandoc', 'remove_trailing_lines', 'trim_whitespace']

View File

@ -54,8 +54,8 @@ if &shell =~# 'fish$'
endif
if has('win32')
set shell=pwsh.exe
set shellcmdflag=-nop\ -c
" set shell=pwsh.exe
" set shellcmdflag=-nop\ -c
endif
" Put all temporary files under the same directory.

View File

@ -1,12 +1,12 @@
" This is special settings for vim-gui.
"
if has("gui_running")
if has("gui_gtk2")
set guifont=Inconsolata\ 12
elseif has("gui_macvim")
if has("gui_macvim")
set guifont=Menlo\ Regular:h14
elseif has("gui_win32")
set guifont=CaskaydiaMono\ NFM:h12
else
set guifont=Inconsolata\ Nerd\ Font\ 12
endif
set go-=T
set go-=m

View File

@ -3,6 +3,7 @@
"
" You should not turn this setting on if you wish to use ALE as a completion
" source for other completion plugins, like Deoplete.
packadd! ale
" Enable ale completion
@ -14,4 +15,17 @@ let g:ale_fixers = {
\ '*': ['remove_trailing_lines', 'trim_whitespace'],
\}
" 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