A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/kshenoy/vim-signature/commit/cfa64525305dbb8cec7eefc16e4ea460f007cd33 below:

Dropping support to avoid mapping conflicts with NERDTree till I find… · kshenoy/vim-signature@cfa6452 · GitHub

File tree Expand file treeCollapse file tree 2 files changed

+8

-21

lines changed

Filter options

Expand file treeCollapse file tree 2 files changed

+8

-21

lines changed Original file line number Diff line number Diff line change

@@ -36,16 +36,16 @@ function! signature#utils#Maps(mode)

36 36

" We create separate mappings for PlaceNextMark, mark#Purge('all') and PurgeMarkers instead of combining it with

37 37

" Leader/Input as if the user chooses to use some weird key like <BS> or <CR> for any of these 3, we need to be able

38 38

" to identify it. Eg. the nr2char(getchar()) will fail if the user presses a <BS>

39 -

let s:SignatureMapLeader = get(g:SignatureMap, 'Leader', 'm')

40 -

if (s:SignatureMapLeader == "")

39 +

let l:SignatureMapLeader = get(g:SignatureMap, 'Leader', 'm')

40 +

if (l:SignatureMapLeader == "")

41 41

echoe "Signature: g:SignatureMap.Leader shouldn't be left blank"

42 42

endif

43 -

call s:Map(a:mode, 'Leader' , s:SignatureMapLeader , 'utils#Input()' )

44 -

call s:Map(a:mode, 'PlaceNextMark' , s:SignatureMapLeader . "," , 'mark#Toggle("next")' )

45 -

call s:Map(a:mode, 'ToggleMarkAtLine' , s:SignatureMapLeader . "." , 'mark#ToggleAtLine()' )

46 -

call s:Map(a:mode, 'PurgeMarksAtLine' , s:SignatureMapLeader . "-" , 'mark#Purge("line")' )

47 -

call s:Map(a:mode, 'PurgeMarks' , s:SignatureMapLeader . "<Space>", 'mark#Purge("all")' )

48 -

call s:Map(a:mode, 'PurgeMarkers' , s:SignatureMapLeader . "<BS>" , 'marker#Purge()' )

43 +

call s:Map(a:mode, 'Leader' , l:SignatureMapLeader , 'utils#Input()' )

44 +

call s:Map(a:mode, 'PlaceNextMark' , l:SignatureMapLeader . "," , 'mark#Toggle("next")' )

45 +

call s:Map(a:mode, 'ToggleMarkAtLine' , l:SignatureMapLeader . "." , 'mark#ToggleAtLine()' )

46 +

call s:Map(a:mode, 'PurgeMarksAtLine' , l:SignatureMapLeader . "-" , 'mark#Purge("line")' )

47 +

call s:Map(a:mode, 'PurgeMarks' , l:SignatureMapLeader . "<Space>", 'mark#Purge("all")' )

48 +

call s:Map(a:mode, 'PurgeMarkers' , l:SignatureMapLeader . "<BS>" , 'marker#Purge()' )

49 49

call s:Map(a:mode, 'DeleteMark' , "dm" , 'utils#Remove(v:count)' )

50 50

call s:Map(a:mode, 'GotoNextLineAlpha', "']" , 'mark#Goto("next", "line", "alpha")' )

51 51

call s:Map(a:mode, 'GotoPrevLineAlpha', "'[" , 'mark#Goto("prev", "line", "alpha")' )

Original file line number Diff line number Diff line change

@@ -60,19 +60,6 @@ if has('autocmd')

60 60

autocmd CursorHold * if g:SignaturePeriodicRefresh

61 61

\| call signature#sign#Refresh()

62 62

\|endif

63 - 64 -

" To avoid conflicts with NERDTree. Figure out a cleaner way.

65 -

" Food for thought: If NERDTree creates buffer specific maps, shouldn't it override Signature's maps?

66 -

autocmd BufEnter,FileType * if ( (&filetype ==? 'nerdtree')

67 -

\ || (&filetype ==? 'netrw')

68 -

\ )

69 -

\| call signature#utils#Maps('remove')

70 -

\| endif

71 -

autocmd BufLeave * if ( (&filetype ==? 'nerdtree')

72 -

\ || (&filetype ==? 'netrw')

73 -

\ )

74 -

\| call signature#utils#Maps('create')

75 -

\| endif

76 63

augroup END

77 64

endif

78 65

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4