Skip to content

Commit

Permalink
Disable search by space
Browse files Browse the repository at this point in the history
  • Loading branch information
Haelle committed Nov 5, 2019
1 parent 2235b1a commit 9a9b63d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 19 deletions.
21 changes: 2 additions & 19 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,5 @@
src: my_configs.vim
dest: '{{ vim_dir }}/my_configs.vim'

# this plugin creates bugs in rails.vim
- name: Disable open_file_under_cursor
file:
path: '{{ vim_dir }}/sources_non_forked/open_file_under_cursor.vim'
state: absent

- name: Remove overriden conf of vim-multiple-cursors
blockinfile:
path: '{{ vim_dir }}/vimrcs/plugins_config.vim'
state: absent
marker_begin: '" => vim-multiple-cursors'
marker_end: "let g:multi_cursor_quit_key = '<Esc>'"
marker: "{mark}"

- name: Remap Ctrl+n for YankStack to Ctrl+k
lineinfile:
path: '{{ vim_dir }}/vimrcs/plugins_config.vim'
regexp: '.+yankstack_substitute_newer_paste'
line: nmap <c-k> <Plug>yankstack_substitute_newer_paste
- name: Remove amix/vimrc plugins
include: remove_plugins.yml
38 changes: 38 additions & 0 deletions tasks/remove_plugins.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
- name: Disable search with space (1/2)
lineinfile:
path: '{{ vim_dir }}/vimrcs/basic.vim'
regexp: 'map <space> /'
state: absent

- name: Disable search with space (2/2)
lineinfile:
path: '{{ vim_dir }}/vimrcs/basic.vim'
regexp: 'map <c-space> ?'
state: absent

# this plugin creates bugs in rails.vim
- name: Disable open_file_under_cursor
file:
path: '{{ vim_dir }}/sources_non_forked/open_file_under_cursor.vim'
state: absent

# anoying & cannot type û when enabled
- name: Disable auto-pair
file:
path: '{{ vim_dir }}/sources_non_forked/auto-pairs'
state: absent

- name: Remove overriden conf of vim-multiple-cursors
blockinfile:
path: '{{ vim_dir }}/vimrcs/plugins_config.vim'
state: absent
marker_begin: '" => vim-multiple-cursors'
marker_end: "let g:multi_cursor_quit_key = '<Esc>'"
marker: "{mark}"

- name: Remap Ctrl+n for YankStack to Ctrl+k
lineinfile:
path: '{{ vim_dir }}/vimrcs/plugins_config.vim'
regexp: '.+yankstack_substitute_newer_paste'
line: nmap <c-k> <Plug>yankstack_substitute_newer_paste

0 comments on commit 9a9b63d

Please sign in to comment.