Skip to content

Commit b17e25f

Browse files
committed
enter in vim remapped
1 parent 8bf138f commit b17e25f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+55
-1836
lines changed

.SpaceVim.d/.netrwhist

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
let g:netrw_dirhistmax =10
2-
let g:netrw_dirhist_cnt =2
2+
let g:netrw_dirhist_cnt =4
33
let g:netrw_dirhist_1='/home/qmxue/data'
44
let g:netrw_dirhist_2='/home/qmxue/Home'
5+
let g:netrw_dirhist_3='/home/qmxue/data'
6+
let g:netrw_dirhist_4='/home/qmxue'

.SpaceVim.d/autoload/myspacevim.vim

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,23 @@ function! myspacevim#before() abort
2727
let g:python_location = system('which python')
2828
let g:python_location = substitute(g:python_location, '\n', '', 'g')
2929
let g:python3_host_prog=g:python_location
30+
31+
" clever f configuration
32+
let g:clever_f_across_no_line = 1
33+
let g:clever_f_smart_case = 1
34+
map ; <Plug>(clever-f-repeat-forward)
35+
map \ <Plug>(clever-f-repeat-back)
3036
endfunction
3137

3238
function! myspacevim#after() abort
3339
set ignorecase
3440
set smartcase
41+
set lazyredraw
42+
set noswapfile
3543

36-
nnoremap ; :
37-
vnoremap ; :
3844
nnoremap Y y$
3945
nnoremap S i<enter><esc>
46+
nnoremap <enter> za
4047
if has('nvim')
4148
cmap <M-b> <S-Left>
4249
cmap <M-f> <S-Right>

.SpaceVim.d/init.toml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
lint_on_save = 0
2828
enable_ale = 1
2929
windows_smartclose = "q"
30+
info_symbol = 'i'
31+
terminal_cursor_shape = 1
32+
statusline_separator = "arrow"
3033
bootstrap_before = "myspacevim#before"
3134
bootstrap_after = "myspacevim#after"
3235

@@ -82,10 +85,14 @@ merged = 0
8285
name = "jeetsukumaran/vim-pythonsense"
8386
merged = 0
8487

85-
[[custom_plugins]]
86-
name = "mbbill/undotree"
87-
merged = 0
88+
# [[custom_plugins]]
89+
# name = "mbbill/undotree"
90+
# merged = 0
8891

8992
[[custom_plugins]]
9093
name = "junegunn/fzf.vim"
9194
merged = 0
95+
96+
# [[custom_plugins]]
97+
# name = "luochen1990/rainbow"
98+
# merged = 0

.SpaceVim/init.vim

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,3 @@
77
"=============================================================================
88

99
execute 'source' fnamemodify(expand('<sfile>'), ':h').'/config/main.vim'
10-
11-
set timeoutlen=1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*

.ipython/profile_default/db/dhist

-83 Bytes
Binary file not shown.
669 KB
Binary file not shown.

.ipython/profile_default/startup/prompt.py

Lines changed: 0 additions & 33 deletions
This file was deleted.

.spacemacs

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ values."
3232
dotspacemacs-configuration-layers
3333
'(
3434
javascript
35-
python
35+
lsp
36+
(python :variables python-backend 'lsp)
3637
;; ----------------------------------------------------------------
3738
;; Example of useful layers you may want to use right away.
3839
;; Uncomment some layer names and press <SPC f e R> (Vim style) or
@@ -141,12 +142,12 @@ values."
141142
:width normal
142143
:powerline-scale 1.1)
143144
;; The leader key
144-
dotspacemacs-leader-key ","
145+
dotspacemacs-leader-key "SPC"
145146
;; The key used for Emacs commands (M-x) (after pressing on the leader key).
146147
;; (default "SPC")
147-
dotspacemacs-emacs-command-key ","
148+
dotspacemacs-emacs-command-key "SPC"
148149
;; The key used for Vim Ex commands (default ":")
149-
dotspacemacs-ex-command-key "SPC"
150+
dotspacemacs-ex-command-key ":"
150151
;; The leader key accessible in `emacs state' and `insert state'
151152
;; (default "M-m")
152153
dotspacemacs-emacs-leader-key "M-m"
@@ -317,10 +318,10 @@ layers configuration.
317318
This is the place where most of your configurations should be done. Unless it is
318319
explicitly specified that a variable should be set before a package is loaded,
319320
you should place your code here."
321+
(add-to-list 'python-shell-extra-pythonpaths "/home/qmxue/anaconda3/pkgs")
322+
(add-to-list 'python-shell-extra-pythonpaths "/home/qmxue/anaconda3/lib/python3.6/site-packages")
320323
(spacemacs/toggle-indent-guide)
321-
(spacemacs/toggle-truncate-lines-on)
322-
;; Visual line navigation for textual modes
323-
(add-hook 'text-mode-hook 'spacemacs/toggle-visual-line-navigation-on)
324+
(spacemacs/toggle-truncate-lines-off)
324325
)
325326

326327
;; Do not write anything past this comment. This is where Emacs will

0 commit comments

Comments
 (0)